#ifndef CHARSMODEL_H
#define CHARSMODEL_H

#include <QAbstractTableModel>
#include <QList>
#include <QStringList>
#include <QVector>
#include <QMap>
#include <QColor>

class CharsModel: public QAbstractTableModel
{
Q_OBJECT

public:

explicit CharsModel( QObject * parent = 0 );
~CharsModel();
int rowCount( const QModelIndex & parent = QModelIndex() ) const;
int columnCount (const QModelIndex & parent = QModelIndex() ) const;
QVariant data( const QModelIndex & index,
               int role = Qt::DisplayRole ) const;
void set_data( QList< QVector<int> > ranges );

public slots:

private:

QList< QMap<int, QString> > model_data;
int rows_count;

};

#endif // CHARSMODEL_H
